package com.custom.activity;

import java.util.Calendar;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.AnalogClock;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;

import com.custom.R;
import com.custom.view.DateTime;
import com.custom.view.MRadioButton;

public class DateDemoActivity1 extends Activity implements
		OnCheckedChangeListener {
	private AnalogClock analogClock;
	private MRadioButton button;
	private DateTime dateTime;
	private Context mContext;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.datedemo1);
		initView();
		getWindowManager().addView(dateTime, null);

	}

	private void initView() {
		dateTime = new DateTime(mContext, Calendar.YEAR, Calendar.MONTH,
				Calendar.DAY_OF_MONTH);
		dateTime.initDate();
		dateTime.generateDate();

	}

	@Override
	public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {

	}
}
